import { Login, User } from "@lgq/types/index";
import cloudRequest from "@lgq/utils/cloudRequest";
import http from "@lgq/utils/http";

export const getVerification = async () => {
  const verification = await cloudRequest.auth.signIn({
    username: "+86 18589044657",
    password: "Lgq0604030123"
  });
  console.log(verification);
}

export const login = (data: Login.Params) => {
  return http.post<User>("/api/user/v1/login", data, {
    showLoading: false,
    showError: false,
  });
};
